package com.example.teamtribe.main.club.setup;

import com.example.teamtribe.common.Back;
import com.example.teamtribe.common.CallbackStore;
import com.example.teamtribe.utils.HttpUtil;
import com.example.teamtribe.utils.URLStore;

import java.util.HashMap;
import java.util.Map;

public class SetUpModel {

    public void setUp(String token, int schoolId, String name, String comment, int masterId, Back back) {
        Map<String, String> params = new HashMap<>();
        params.put("TeamTribeToken", token);
        params.put("schoolId", schoolId + "");
        params.put("name", name);
        params.put("comment", comment);
        params.put("masterId", masterId + "");
        HttpUtil.post(URLStore.TEAM_ADD, params, CallbackStore.getCallback(back));
    }
}
